package com.pengy.shengxian.mapper;

import com.pengy.shengxian.entity.BjdDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报价单明细表Mapper
 */
public interface BjdDetailMapper {
    int insert(BjdDetail bjdDetail);
    int batchInsert(@Param("list") List<BjdDetail> bjdDetails);
    BjdDetail selectById(Long id);
    List<BjdDetail> selectByBjdInfoId(Long bjdInfoId);
    List<BjdDetail> selectByBjdInfoCode(String bjdInfoCode);
    List<BjdDetail> selectAll();
    int update(BjdDetail bjdDetail);
    int deleteById(Long id);
    int deleteByBjdInfoId(Long bjdInfoId);
    int batchUpdateDetailFieldsByBjdInfoId(@Param("bjdInfoId") Long bjdInfoId);
    int batchUpdate(@Param("list") List<BjdDetail> bjdDetails);
    int updateDetailFieldsByBjdInfoCode(@Param("bjdInfoCode") String bjdInfoCode);
}